import Taro from '@tarojs/taro'
import _Fetch from '@/server/Fetch'
import { API_POST_EVALUATION } from '@/api/evaluation/get_evaluation_info'
import { API_POST_MY_TOGGLE_LICK } from '@/api/user/getMyCollect'
import { API_POST_COMMENT_LIST } from '@/api/evaluation/get_comment_list'

export async function get_evaluation_info_api(id: number) {
  return await _Fetch(API_POST_EVALUATION, { questionNameId: id })
}

export async function toggle_lick_api(id: number, type: number) {
  return await _Fetch(API_POST_MY_TOGGLE_LICK, { id, type })
}
export async function selected_comment_api(id: number, currentPage, pageSize) {
  return await _Fetch(API_POST_COMMENT_LIST, { questionNameId: id, pageNum: currentPage, pageSize })
}
